const async1 = () => {
    return new Promise((resolve,reject) => {
        setTimeout(() => {
            resolve("hello")
        },2000)
    })
}


const async2 = () => {
    return new Promise((resolve,reject) => {
        setTimeout(() => {
            reject("world")
        },2000)
    })
}

const async3 = async () => {
    const result = await Promise.allSettled([async1(),async2()])
    console.log(result);
    console.log(result.length);
    return result
}

async3()